package com.sihan.framework.etm.mapper;

import com.framework.mybatis.mapper.BaseMapper;
import com.sihan.framework.etm.entity.Log;
import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface LogMapper extends BaseMapper<Log, Long> {

  List<Log> selectPage(@Param("startTime") Date startTime, @Param("endTime") Date endTime,
      @Param("ip") String ip, @Param("operation") String operation, @Param("logType") Integer type);

  List<String> findOperas(@Param("logType") Integer logType);

  List<String> findOperaUsers(@Param("logType") Integer logType);

  List<Map<String, Object>> look(@Param("map") Map<String,Object> params);

  List<Map<String, Object>> look1(@Param("map") Map<String,Object> params);

  List<Log> findBeforeSixLogs(@Param("createTime") Date time);


  void deleteBeforeSixLogs(@Param("createTime") Date time);
}